package ru.study.thinkin.tests;

class TestInit{
	public int i ;
	public static int jj = 555;
	TestInit(){
		i=10;
		System.out.println("Вызван конструктор");
	}
	static {
		jj=20;
		System.out.println("Вызван static");
	}

}


public class TestInitialization {
	TestInitialization(){
		System.out.println("ТестИнициалейшен конструктор");
	}
	public static int getNum(){
		return 555;
	}
		
	public static void main(String[] args) {
		Class c = TestInit.class;
		System.out.println(c.getSimpleName());
		
		
		/*try {
			Object t = c.newInstance();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
		*/
			 
		try {
			Class c2= Class.forName("ru.study.thinkin.tests.TestInit");
		} catch (ClassNotFoundException e) {		
			e.printStackTrace();
		}
		//System.out.println(TestInit.jj);
		
	}

}
